package cn.zf233.xcloud.mapper;

import cn.zf233.xcloud.entity.User;

import java.util.List;

/**
 * Created by zf233 on 2020/11/4
 */
public interface UserMapper {

    User selectByPrimaryKey(Long id);

    User selectByUid(Long uid);

    User selectUserByEmail(String email);

    User selectUserByPhone(String phone);

    User selectUserByOpenId(String openId);

    Integer insert(User user);

    Integer updateByPrimaryKeySelective(User user);

    List<User> selectUsers();

    List<User> selectUsersBySource(Integer source);

    Integer deleteByPrimaryKey(Long id);
}